
export default {
    namespaced: true,
    state: {
        infoList:[]
    },
    mutations: {
        getInputInfo(state, val) {
            state.infoList.push({name: val, falg: false})
        },
        delInfoLiist(state, ind) {
            state.infoList = state.infoList.filter((item,index) => index!== ind)
        },
        delTrueList(state, arr) {
            state.infoList = arr
        },
        setListFalg(state, val) { 
            state.infoList.forEach(item => item.falg = val)
        }
    },
}